package com.lysj.bhp.manager.base;


import com.lysj.bhp.manager.repository.CompanyRepository;
import com.lysj.bhp.manager.repository.PrivilegeRepository;
import com.lysj.bhp.manager.repository.RoleRepository;
import com.lysj.bhp.manager.repository.StaffRepository;
import com.lysj.bhp.system.base.RootContent;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 基础的容器,此容器包含所有Service和Repository的对象(单例)
 */
@Component
public class ManagerContent extends RootContent {

//    protected static final long LOGIN_EXPIRES_MANAGER = 1000 * 60 * 60 * 100;// 单位:ms/登录过期时间(员工)[100小时]
    protected static final long LOGIN_EXPIRES_MANAGER = 1000 * 60 * 15;// 单位:ms/登录过期时间(员工)[15分钟]

    protected static final String LOGIN_PAGE_URL = DOMAIN_NAME + "wxstore/login.html";

    @Resource
    protected StaffRepository staffRepository;
    @Resource
    protected PrivilegeRepository privilegeRepository;
    @Resource
    protected CompanyRepository companyRepository;
    @Resource
    protected RoleRepository roleRepository;
    @Resource
    protected com.lysj.bhp.manager.repository.languageRepository languageRepository;
    
}
